package com.yqd.d3_abstract.demo1;

public class MainTest {
    public static void main(String[] args) {
        Card card1 = new GoldCard("张三", 10000.0);
        card1.pay(1000.0);
        card1.pay(2000.0);

        Card card2 = new SilverCard("李四",10000.0);
        card2.pay(1000.0);
        card2.pay(2000.0);

    }
}
